<html><head><title>MouseButton</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">MouseButton()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>MouseButton</b></font>(Button)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns zero if the specified button number is not pressed, else the button is pressed. 
Any number of buttons can be pressed at the same time. <a href="examinemouse.html">ExamineMouse()</a> must be 
called before this function to update the actual button's state. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Button</i></td>
<td width="90%"> 
It can be one of the following constants: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_MouseButton_Left</font>  : Tests if the left mouse button is pressed
  <font color="#924B72">#PB_MouseButton_Right</font> : Tests if the right mouse button is pressed
  <font color="#924B72">#PB_MouseButton_Middle</font>: Tests if the middle mouse button is pressed
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Nonzero if the specified mouse button is pressed, zero otherwise. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="examinemouse.html">ExamineMouse()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=initmouse.html>InitMouse()</a> - <a href=index.html>Mouse Index</a> - <a href=mousedeltax.html>MouseDeltaX()</a> ->

</body></html>